package com.exam.domain.entity;

import java.util.Date;

public class Record {
    private Integer recordId;
    private Integer examId;
    private Integer studentId;
    private Date submittedAt;
    private Integer totalScore;

    // 试卷信息
    private Exam exam;

    private Student student;

    public Integer getRecordId() {
        return recordId;
    }

    public void setRecordId(Integer recordId) {
        this.recordId = recordId;
    }

    public Integer getExamId() {
        return examId;
    }

    public void setExamId(Integer examId) {
        this.examId = examId;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public Date getSubmittedAt() {
        return submittedAt;
    }

    public void setSubmittedAt(Date submittedAt) {
        this.submittedAt = submittedAt;
    }

    public Integer getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(Integer totalScore) {
        this.totalScore = totalScore;
    }

    public Exam getExam() {
        return exam;
    }

    public void setExam(Exam exam) {
        this.exam = exam;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    @Override
    public String toString() {
        return "Record{" +
                "recordId=" + recordId +
                ", examId=" + examId +
                ", studentId=" + studentId +
                ", submittedAt=" + submittedAt +
                ", totalScore=" + totalScore +
                ", exam=" + exam +
                ", student=" + student +
                '}';
    }
}
